<?php if (Yii::app()->user->hasFlash('create')): ?>
	<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('create'); ?>
</div>
<?php else: ?>
		<div class="form">
	<?php $form = $this->beginWidget('CActiveForm'); ?>

		<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

		<div class="row">
		<?php echo $form->labelEx($model, 'title'); ?>
		<?php echo $form->textField($model, 'title', array('size'=>50)); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model, 'body'); ?>
		<?php echo $form->textArea($model, 'body', array('rows' => 6, 'cols' => 50)); ?>
	</div>

	<div class="row submit">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

	<?php $this->endWidget(); ?>
	</div>
<?php endif; ?>